﻿package 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.utils.getDefinitionByName;
	import controls.ButtonBar;



	public class Main extends MovieClip
	{
		private var _main:Object;
		private var _buttonBar:ButtonBar;
		

		 private static const LINKAGE_MENU:String = "Menu"; 
		 
		public function Main()
		{
			_main = this;
			
			_buttonBar = new ButtonBar();
			_buttonBar.target = _main.buttonBar;
			
			var obj:Object = [{label:"메뉴1"},{label:"메뉴2"},{label:"메뉴3"}];
			
	
			_buttonBar.render =getDefinitionByName(LINKAGE_MENU) as Class;
			_buttonBar.dataProvider(obj);
			
			// This class is already linked to your .fla as the document class
		}
	}

}
